@echo off
:wait
tasklist | find /i "%1" >nul
if not errorlevel 1 (
    timeout /t 1 >nul
    goto wait
)
start "" "%2"
